/** 分类功能模块 */
export const cateModuleMixin = {
	data() { return { cateData: [], cateLoading: true } },
	onLoad() { this.getcateFn(); },
	methods: {
		async getcateFn() {
			this.cateLoading = true;
			try {
				const res = await this.$post('6544df50b3b91', {});
				this.cateData = (res.data || []).map(item => {
					return { ...item, children: item.child }
				});
			} catch (e) {}
			this.cateLoading = false;
		}
	}
};